<IfModule mod_rewrite.c>
  Options +FollowSymLinks
  RewriteEngine On
  # if requested file exists use it 
  RewriteCond %{REQUEST_FILENAME} !-f
  # if requested directory exists use it
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^watch\?*$ video.php [L,QSA]
  RewriteRule ^channel/(.*)$ channel.php?id=$1 [L,QSA]
  RewriteRule ^search\?*$ search.php [L,QSA]
  RewriteRule ^feed/trending*$ trending.php [L,QSA]
</IfModule>

# Deny access to config file
<Files "inc/config.inc.php">  
  Order Allow,Deny
  Deny from all
</Files>

Options -Indexes +FollowSymLinks
IndexIgnore *
